/*
 * @Author: silence
 * @Date: 2023-12-14 19:26:33
 * @LastEditors: 
 * @LastEditTime: 2023-12-14 19:26:46
 * @Description: 
 */
import 'package:sil_utils_package/log/SilEntityLog.dart';

class WarningEntity {
  String? id;
  String? powerId;
  String? powerName;
  String? userId;
  String? waringInfo;
  String? waringTime;
  String? snNumber;
  String? handleState;
  String? isValid;
  String? createTime;

  WarningEntity({
    this.id,
    this.powerId,
    this.powerName,
    this.userId,
    this.waringInfo,
    this.waringTime,
    this.snNumber,
    this.handleState,
    this.isValid,
    this.createTime,
  });

  WarningEntity.fromJson(Map<String, dynamic> json) {
    id = SilEntityLog.handleString(json, 'id');
    powerId = SilEntityLog.handleString(json, 'powerId');
    powerName = SilEntityLog.handleString(json, 'powerName');
    userId = SilEntityLog.handleString(json, 'userId');
    waringInfo = SilEntityLog.handleString(json, 'waringInfo');
    waringTime = SilEntityLog.handleString(json, 'waringTime');
    snNumber = SilEntityLog.handleString(json, 'snNumber');
    handleState = SilEntityLog.handleString(json, 'handleState');
    isValid = SilEntityLog.handleString(json, 'isValid');
    createTime = SilEntityLog.handleString(json, 'createTime');
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['powerId'] = this.powerId;
    data['powerName'] = this.powerName;
    data['userId'] = this.userId;
    data['waringInfo'] = this.waringInfo;
    data['waringTime'] = this.waringTime;
    data['snNumber'] = this.snNumber;
    data['handleState'] = this.handleState;
    data['isValid'] = this.isValid;
    data['createTime'] = this.createTime;
    return data;
  }
}
